package com.blacktry.service;

import com.blacktry.entity.model.AdminRole;
import com.blacktry.entity.model.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import com.blacktry.entity.model.vueVO.Option;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author blackTry
 * @since 2021-06-25
 */
public interface RoleService extends IService<Role> {
    Integer addRole(Role role);

    Integer removeRolesByIds(List<Integer> ids);

    Integer updateRole(Role role);

    Role getOneById(Integer id);

    List<Role> getRoles(Integer id);

    List<AdminRole> rolesById(Integer id);

    String[] getRolesStringArr();

    List<Option> selectAllRoleOptions();
}
